package com.sloera.jvm.ref;

/**
 * @author sloera
 * @create 2020/5/3
 */
public class StrongReferenceDemo {
    public static void main(String[] args) {
        Object object1 = new Object(); //强引用
        Object object2 = object1;
        object1 = null;
        System.gc();
        System.out.println(object2);
    }
}
